﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Itasa.RSS;
using Itasa.API;

namespace Itasa
{
    /// <summary>
    /// Logica di interazione per Torrent_Control.xaml
    /// </summary>
    public partial class Torrent_Control : TabItem
    {

        internal Torrent_Show show;

        internal Torrent_Control(Torrent_Show s)
        {
            InitializeComponent();
            this.show = s;
            this.Header = s.Show.Name;
            foreach (Torrent_Version v in s.VersionList)
            {
                Torrent_Item_Control tic = new Torrent_Item_Control(v.TorrentList);
                tic.Header = v.VersionName;
                this.Torrents.Items.Add(tic);
            }
        }
    }
}
